<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box1{
            width:50px;
            height:50px;
            border-radius: 50%;
            border:2px solid crimson;
            margin:150px auto;
        }
            @keyframes move{
                0%{
                    transform:translate(0);
                }
                25%{
                    transform:translate(500px);
                }
                50%{
                    transform:translate(500px,500px);
                }
                75%{
                    transform:translate(0,500px);
                }
                100%{
                    transform:translate(0);
                }
               

            }
            div{
                animation: move 5s linear infinite 0s;
            }
        
    </style>
</head>
<body>
    <div class="box1"></div>
</body>
</html>